package coordinators;

import windows.*;


public class Cordinator
{
	WindowPrincipal 	windowPrincipal;
	ManageClient 		manageClient;
	ManageRecipe 		manageRecipe;
	ManageOrder 		manageOrder;
	ManageInsumos 		manageInsumos;
	ElaboratePie 		elaboratePie;
	WindowReport 		createReport;
	WindowAdministrator windowAdministrator;
	WindowPastry 		windowPastry;
	WindowDistribute 	distribute;


	public Cordinator()
	{

	}
	/***************************************************************/


	public void setWindowPrincipal(WindowPrincipal v)
	{
		windowPrincipal = v;
	}
	public void setWindowAdministrator(WindowAdministrator va)
	{
		windowAdministrator = va;
	}
	public void setWindowPastry(WindowPastry vp)
	{
		windowPastry = vp;
	}

	public void setManageClient(ManageClient gc)
	{
		manageClient = gc;
	}

	public void setManageRecipe(ManageRecipe gr) 
	{
		manageRecipe = gr;
	}

	public void setManageOrder(ManageOrder gp) 
	{
		manageOrder = gp;
	}

	public void setManageInsumos(ManageInsumos gi)
	{
		manageInsumos = gi;
	}

	public void setElaboratePie(ElaboratePie ep)
	{
		elaboratePie = ep;
	}

	public void setCreateReport(WindowReport cr)
	{
		createReport = cr;
	}
	public void setDistribute(WindowDistribute dp)
	{
		distribute = dp;
	}
	
	/***************************************************************/
	
	public void ProcessManageClient()
	{
		manageClient.setVisible(true);
		windowAdministrator.setVisible(false);
	}
	public void ProcessCloseManageClient()
	{
		manageClient.setVisible(false);
		windowAdministrator.setVisible(true);
	}
	public void ProcessManageInsumos()
	{
		manageInsumos.setVisible(true);
		windowAdministrator.setVisible(false);
	}
	public void ProcessCloseManageInsumos()
	{
		manageInsumos.setVisible(false);
		windowAdministrator.setVisible(true);
	}
	public void ProcessManageOrder()
	{
		manageOrder.setVisible(true);
		windowAdministrator.setVisible(false);
	}
	public void ProcessCloseManageOrder()
	{
		manageOrder.setVisible(false);
		windowAdministrator.setVisible(true);
	}
	public void ProcessCreateReport()
	{
		createReport.setVisible(true);
		windowAdministrator.setVisible(false);
	}
	public void ProcessCloseCreateReport()
	{
		createReport.setVisible(false);
		windowAdministrator.setVisible(true);
	}
	public void ProcessDistributeOrder()
	{
		distribute.setVisible(true);
		windowAdministrator.setVisible(false);
	}
	public void ProcessCloseDistributeOrder()
	{
		distribute.setVisible(false);
		windowAdministrator.setVisible(true);
	}
	public void ProcessWindowPastry()
	{
		windowPastry.setVisible(true);
	}
	public void ProcessCloseWindowPastry()
	{
		windowPastry.setVisible(false);
	}
	public void ProcessManageRecipe()
	{
		manageRecipe.setVisible(true);
	}
	public void ProcessCloseManageRecipe()
	{
		manageRecipe.setVisible(false);
	}
	public void ProcessWindowAdministrator()
	{
		windowAdministrator.setVisible(true);
		windowPrincipal.setVisible(false);
	}
	public void ProcessCloseWindowAdministrator()
	{
		windowAdministrator.setVisible(false);
		windowPrincipal.setVisible(true);
	}
	public void ProcesoElaborarPastel()
	{
		elaboratePie.setVisible(true);
	}

	/***************************************************************/

}
